Sum of Digits of a Given Number in Python